{% extends "catalog/base_generic.html" %}

{% block content %}
<h1>编辑书籍</h1>

<form method="post">
    {% csrf_token %}
    <table>
        {{ form.as_table }}
    </table>
    <button type="submit" class="btn btn-primary">保存</button>
    <a href="{% url 'book-detail' book.pk %}" class="btn btn-secondary">取消</a>
</form>
{% endblock %}